import { Module } from '@nestjs/common';
import { ApiController } from './api.controller';
import { AuthModule } from './auth/auth.module';
import { UploadController } from './upload/api.controller';
import { DatabaseModule } from 'src/common/database/database.module';
import { JwtStrategy } from 'src/common/guard/jwt.strategy';
import { UserService } from 'src/user/user.service';
import { userProviders } from 'src/user/user.providers';
import { ApiService } from './api.service';
import { ApiUserModule } from './user/user.module';
import { ZiliaoApiModule } from './ziliao/ziliao.module';

@Module({
  imports: [AuthModule, DatabaseModule, ApiUserModule, ZiliaoApiModule],
  controllers: [ApiController, UploadController],
  providers: [...userProviders, UserService, JwtStrategy, ApiService],
})
export class ApiModule {}
